import request from '@/utils/request'

export default {
  //根据token获取用户信息
  getUserInfo() {
    return request({
      url: '/educenter/member/getMemberInfo/',
      method: 'get',
    })
  },
  //更新用户头像
  uploadAvatar(userInfo) {
    return request({
      url: '/educenter/member/uploadAvatar/',
      method: 'post',
      data: userInfo,
    })
  },
  //修改客户信息
  updateUserInfoById(userInfo) {
    return request({
      url: '/educenter/member/updateUserInfoById/',
      method: 'post',
      data: userInfo,
    })
  },
  //修改用户密码
  updatePwdInfoById(userInfo) {
    return request({
      url: '/educenter/member/updatePwd/',
      method: 'post',
      data: userInfo,
    })
  },

}
